package com.hs.service;

import com.github.pagehelper.PageInfo;
import com.hs.entity.MyConsult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MyConsultService {
    int addMyConsult(MyConsult myConsult);
    int deleteMyConsult(int id);
    int updateMyConsult(MyConsult myConsult);
    MyConsult getMyConsultById(int id);
    PageInfo<MyConsult> getMyConsultByPage(MyConsult myConsult,int pageNum,int pageSize);
    PageInfo<MyConsult> getMyConsultByUserId(Integer userId,Integer pageNum,Integer pageSize);
    //
    List<MyConsult> getFinishedConsults(Integer userId);
    List<MyConsult> getUnfinishedConsults(Integer userId);
    boolean updateConsultStatus(Integer consultId);
    int updateMyConsultByIds(Integer consultantId);
}
